<html>
<body>
<p>Reports when <code>headOption</code> or <code>lastOption</code> is emulated.</p>

<p><b>Example:</b></p>
<pre><code>
  var seq: Seq[Int]
  if (seq.nonEmpty) Some(seq.head) else None
  seq.lift(0)

  if (seq.size == 0) None else seq.lastOption
  seq.lift(seq.size - 1)
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  var seq: Seq[Int]
  seq.headOption
  seq.headOption

  seq.lastOption
  seq.lastOption
</code></pre>
<!-- tooltip end -->
</body>
</html>